﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Metriks.Prezentacija
{
    /// <summary>
    /// Interaction logic for RenameWindow.xaml
    /// </summary>
    public partial class RenameWindow : Window
    {
        public RenameWindow()
        {
            InitializeComponent();
            Status = false;
        }

        public RenameWindow(String oldname)
        {
            InitializeComponent();
            Status = false;
            oldName.Text = oldname;
            oldName.IsReadOnly = true;
        }

        public String StaroIme { get { return oldName.Text; } }
        public String NovoIme { get { return newName.Text; } }
        public bool Status { get; set; }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            Status = true;
            this.Close();
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            Status = false;
            this.Close();
        }
    }
}
